package com.wh.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wh.model.pojo.SecondDepartMent;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author: wh(1835734390 @ qq.com)
 * @date: 2022/11/18 22:26
 * @description:
 * @version:
 */
@Mapper
public interface SecondDepartMapper extends BaseMapper<SecondDepartMent> {
    @Select("select * from second_department where parent_id=#{firstDepartId}")
    List<SecondDepartMent> getSecondDepartList(@Param("firstDepartId") Integer firstDepartId);
}
